package spring.data.jpa.vo;

import java.io.Serializable;

import org.apache.commons.beanutils.converters.LongConverter;

import spring.data.jpa.annotation.ColumnMapper;

public class DepartmentVO implements Serializable {

    private static final long serialVersionUID = 1L;
    @ColumnMapper(columnName = "id", converter = LongConverter.class)
    private Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @ColumnMapper(columnName = "name")
    private String name;
    @ColumnMapper(columnName = "number")
    private Integer number;
    @ColumnMapper(columnName = "leader")
    private String leader;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getLeader() {
        return leader;
    }

    public void setLeader(String leader) {
        this.leader = leader;
    }

    /*
     * (non-Javadoc)
     * 
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "Department [id=" + id + ", name=" + name + ", number=" + number + ", leader=" + leader + "]";
    }

}
